package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumUpdateInfoParam implements Serializable {

    @NotNull(message = "相册名称不能为空")
    @ApiModelProperty(value = "相册名称",required = true,example = "乒乓球")
    private String name;

    @NotNull(message = "相册描述不能为空!")
    @ApiModelProperty(value = "相册描述",required = true,example = "乒乓球的描述")
    private String description;

    @NotNull(message = "相册排序不能为空!")
    @Range(min = 1,max = 99,message = "相册排序必须在1~99之间")
    @ApiModelProperty(value = "相册排序(1~99之间)",required = true,example = "52")
    private Integer sort;
}
